package com.mgface.springcloud.controller;

import com.mgface.springcloud.client.RestTemplateClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wanyuxiang
 * @version 1.0
 * @project springcloudCollection
 * @create 2018-08-16 14:26
 **/
@RestController
public class RibbonHystrixController {

    @Autowired
    private RestTemplateClient client;

    @GetMapping("/say")
    public String say(){
        return client.say();
    }
}
